package cn.iocoder.yudao.module.digital.controller.admin.csc.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 软著新增/修改 Request VO")
@Data
public class CscSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "6516")
    private Integer id;

    @Schema(description = "软著名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "软著名称不能为空")
    private String name;

    @Schema(description = "著作权编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "著作权编号不能为空")
    private String no;

    @Schema(description = "所属单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "所属单位不能为空")
    private Integer affiliation;

    @Schema(description = "登记号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "登记号不能为空")
    private String registrationNum;

    @Schema(description = "出版日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "出版日期不能为空")
    private LocalDateTime publicationTime;

    @Schema(description = "软著类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "软著类型不能为空")
    private Integer cscType;

    @Schema(description = "作者", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "作者不能为空")
    private String author;

    @Schema(description = "贡献率", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "贡献率不能为空")
    private String rate;

    @Schema(description = "保留字段")
    private String reserved1;

    @Schema(description = "保留字段")
    private String reserved2;

    @Schema(description = "保留字段")
    private String reserved3;

    @Schema(description = "保留字段")
    private String reserved4;

    @Schema(description = "保留字段")
    private String reserved5;

    @Schema(description = "备注", example = "你猜")
    private String remark;

    @Schema(description = "佐证地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.chanchat.cn")
    @NotEmpty(message = "佐证地址不能为空")
    private List<String> evidenceUrl;
}